// imageDelegate.cpp
//
// Image delegation object to allow optimized implementations of 
// image processing functions to be used dynamically.

#include "image/imageDelegate.h"
#include "image/imageTmpl.h"

namespace simple{

    ImageDelegate* ImageDelegate::_sOnly = 0;

    ImageDelegate& ImageDelegate::gOnly()
    {
        if (!_sOnly) _sOnly = new ImageDelegate ();
        return *_sOnly;
    }

    ImageDelegate::ImageDelegate () {}


    void ImageDelegate::addDelegate (std::string name, FunctionS8D8 function)
    {
        Typemap& types = _functionmap[name];
        types["S8D8"] = (Function) function;

    }
}
